import request from '@/utils/request'
import {parseStrEmpty} from "@/utils/ruoyi";

// 查询加工列表
export function listProcess(query) {
  return request({
    url: '/crop/process/list',
    method: 'get',
    params: query
  })
}

// 添加加工列表
export function addProcess(data) {
  return request({
    url: '/crop/process',
    method: 'post',
    data: data
  })
}


// 修改加工列表
export function updateProcess(data) {
  return request({
    url: '/crop/process',
    method: 'put',
    data: data
  })
}

export function deleteProcessById(ids) {
  return request({
    url: '/crop/process/del?ids=' + ids,
    method: 'delete'
  })
}


// 农作物列表
export function listCrop() {
  return request({
    url: '/crop/process/crop',
    method: 'get'
  })
}

// 回显
export function getById(processId) {
  return request({
    url: '/crop/process/getById/'+processId,
    method: 'post',
  })
}
